/**
 * 通用模块请求
 */
import request from '@/api/request';
import {GetTagOptionData, GetTagRequestData, GetAllTagOptionData, GetAllTagRequestData} from './types/common';

// 获取类型选项-table表中存在的类型
export function getTagOptionApi(params: GetTagRequestData, type: string) {
    return request<GetTagOptionData>({
        url: `/web/api/${type}/query/all`,
        method: 'get',
        params
    });
}

// 获取类型选项-全量类型
export function getAllTagOptionApi(data: GetAllTagRequestData) {
    return request<GetAllTagOptionData>({
        url: '/web/api/data/tag/query/all',
        method: 'post',
        data
    });
}
